<?php 	defined('_JEXEC') or die('Restricted access');	//九核模块，由【九木核心】开发制作：www.jmcore.com

	$n=2; //设置项名称中的最大编号，如有 v_100，则置：$n=100; 
	for ($i =0; $i <= $n; $i++)  $v[$i] = trim($params->get('v_'.$i));

	if($v[0]) JFactory::getDocument()->addStyleDeclaration($v[0]);
	$app = JFactory::getApplication();
	$t = $app->getTemplate(); 
	$eid = JRequest::getUInt('Itemid');
	//$p = jmcore::get_tpara();
	//$p1 = $p[1];
	$g		= jmcore::get();
	$pg	= $g->get('pagination');
	$view= JRequest::getVar('view');

	if($view=='featured')	$arr_item= $g->get('lead_items');	//精选文章
	else							$arr_item= $g->get('items');			//单个类别 
?>
<div class="m_<?php echo $mid.' '.$mnm; ?>"><div id="content_contenr_top" style=" margin-top:0;";>
	<div class="hzjj_list">
		<ul><?php 
			$itemid = $eid;
			if(count($arr_item)>0){
			foreach($arr_item as $m){
				$id	=$m->id;
				$title	=$m->title;
				$tit	=jmcore:: get_text_limit($title, 45);
				$alias=$m->alias;
				$dtm	   =$m->created;
				$dt	=substr($dtm,0,10);
				$cid	=$m->catid;
				$lk	=JRoute::_('index.php?option=com_content&view=article&id='.$id.':'.$alias.'&catid='.$cid.'&Itemid='.$itemid,false);
				echo'<li><a href="'.$lk.'" target="_blank" title="'.$title.'">'.$tit.'<span>'.$dt.'</span></a></li>';
			}} ?>
		</ul>
		<div id="pages"><form action="<?php echo htmlspecialchars(JFactory::getURI()->toString()); ?>" method="post" name="adminForm" id="adminForm"><?php 
			//$pg = $this->pagination;
			$tot_page	= $pg->get('pages.total');		//共几页
			$cnt_page	= $pg->get('pages.current');	//当前第几页
			$tot_all		= $pg->get('total');					//总共多少条
			$limit		= $pg->get('limit');					//每页多少条  ?>

			总数：<b><?php echo $tot_all; ?></b><?php echo $pg->getPagesLinks() ; ?>
			页次：<b><font color="red"><?php echo $cnt_page; ?></font>/<?php echo $tot_page; ?></b>
			<input type="text" name="p_to" id="p_to" size="2"> 
			<input type="button" value="GO" class="gotopage" onclick=" document.adminForm.limitstart.value=(document.adminForm.p_to.value-1) * <?php echo $limit ; ?>; Joomla.submitform();return false;">
			<div><input type="hidden" value="" name="limitstart"><input type="hidden" value="<?php echo $limit ; ?>" name="limit"></div>
		</form></div>
	</div>
</div></div>

